LEADTOOLS (Leadtools assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
EnableEvents Method
See Also 
Leadtools Namespace > RasterCollection<T> Class : EnableEvents Method



Called to enable raising the ItemAdded and ItemRemoved events. Supported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Sub EnableEvents() 
Visual Basic (Usage)Copy Code
Dim instance As RasterCollection(Of T)
 
instance.EnableEvents()
C# 
public void EnableEvents()
C++/CLI 
public:
void EnableEvents(); 

Example

For an example, refer to RasterCollection<T>.

Remarks

Calling DisableEvents will increment an internal counter. When the internal counter is 0, ItemAdded or ItemRemoved event will be raised when items are added or removed to/from this RasterCollection<T>.

When the internal counter is not 0, ItemAdded and ItemRemoved events will not be raised. Therefore, for each call to DisableEvents, there should be a corresponding call to EnableEvents in order to restore the raising of events.

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only), Windows Phone 7

See Also